package com.kangaroo;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        String str = "0010100200000";
        String t = str.replaceAll("0+$", "");
        System.out.println(t);
    }
}
